package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffSapceCopywriterDto
 * @使用场景
 */
@Data
public class BffSapceCopywriterDto implements Serializable {

    /**
     * 答案ID
     */
    @ApiModelProperty("答案ID")
    private String optionResultId;

    /**
     * 选项名称
     */
    @ApiModelProperty("选项名称")
    private String confOptionName;

    /**
     * 选项标识
     */
    @ApiModelProperty("选项标识")
    private String confOptionCode;

    /**
     * 答案值
     */
    @ApiModelProperty("答案值")
    private String endValue;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffSapceCopywriterDto that = (BffSapceCopywriterDto) o;
        return optionResultId == that.optionResultId && confOptionName == that.confOptionName && confOptionCode == that.confOptionCode && endValue == that.endValue;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), optionResultId, confOptionName, confOptionCode, endValue);
    }

}
